package it.hopeless.jee6.decorator;

import javax.decorator.Decorator;
import javax.decorator.Delegate;
import javax.enterprise.inject.Any;
import javax.inject.Inject;

@Decorator
public class GreetingDecorator implements Greeting {

    @Inject
    @Delegate
    @Any
    Greeting greeting;

    public GreetingDecorator() {
        System.out.println("CHIAMATO");
    }

    public String getGreet() {
        return greeting.getGreet() +  " DECORATED ";
    }
}